<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/RastinArgham.CRM.Services.DTOs" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/RastinArgham.CRM.Services.DTOs" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:2360/CRMAPI.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="OrderDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="Contact" nillable="true" type="tns:ContactDTO" />
      <xs:element minOccurs="0" name="OrderDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Price" type="xs:long" />
      <xs:element minOccurs="0" name="Quantity" type="xs:int" />
      <xs:element minOccurs="0" name="ServiceId" type="xs:int" />
      <xs:element minOccurs="0" name="TaxPercent" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="OrderDTO" nillable="true" type="tns:OrderDTO" />
  <xs:complexType name="ContactDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="AcademicDegree" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AccountManagerId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="Address" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Birthday" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="CampaignCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CityId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CompanyActivityField" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CompanyName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ContactTitle" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ContactTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="EducationalMajor" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FatherName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Fax" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FirstName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FullContactTitle" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IdentityIssuePlace" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IdentityNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Job" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LastName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ManagerAcademicDegree" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ManagerBirthday" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ManagerEducationalMajor" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ManagerFirstName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ManagerFullNameEnglish" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ManagerLastName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ManagerNationalCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MobilePhone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NationalCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OperatorId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="Phone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegistrationNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Website" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ZipCode" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ContactDTO" nillable="true" type="tns:ContactDTO" />
  <xs:complexType name="ArrayOfServiceDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ServiceDTO" nillable="true" type="tns:ServiceDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfServiceDTO" nillable="true" type="tns:ArrayOfServiceDTO" />
  <xs:complexType name="ServiceDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Price" type="xs:long" />
      <xs:element minOccurs="0" name="ProvinceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ServiceId" type="xs:int" />
      <xs:element minOccurs="0" name="ServiceName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ServicePeriod" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="TaxPercent" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ServiceDTO" nillable="true" type="tns:ServiceDTO" />
  <xs:complexType name="ArrayOfCityDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="CityDTO" nillable="true" type="tns:CityDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCityDTO" nillable="true" type="tns:ArrayOfCityDTO" />
  <xs:complexType name="CityDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="CityId" type="xs:int" />
      <xs:element minOccurs="0" name="CityName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProvinceId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CityDTO" nillable="true" type="tns:CityDTO" />
  <xs:complexType name="ArrayOfProvinceDTO">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ProvinceDTO" nillable="true" type="tns:ProvinceDTO" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfProvinceDTO" nillable="true" type="tns:ArrayOfProvinceDTO" />
  <xs:complexType name="ProvinceDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="Cities" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProvinceDTO" nillable="true" type="tns:ProvinceDTO" />
</xs:schema>